package com.example.weblending.vo;

import com.example.weblending.domain.User;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Data
public class UserInfo {
    private Map<String,Object> info;

    public UserInfo(User user){
        info =new HashMap<>();
        info.put("name",user.getName());
        info.put("email",user.getEmail());
        info.put("roles",user.getPermission());
        info.put("clean",user.getCleannum());
        info.put("analyze",user.getAnalyzenum());
        info.put("state",user.getStatus());
        info.put("unset",user.getUnset());
    }

}
